import { ApiProperty } from '@midwayjs/swagger';

/**
 * @description User-Service parameters
 */
export interface IUserOptions {
  uid: number;
}
export interface LeaveBill {
  leaveBillId: number;
  reason: string;
  leaveType: LeaveTypeEnum;
  leaveTimeFrom: Date;
  leaveTimeTo: Date;
  applier: string;
  auditor: string;
  leaveBillState: LeaveBillStateEnum;
  auditorWords: string;
}
export enum LeaveTypeEnum {
  sick = 'sick',
  annual = 'annual',
  issue = 'issue',
}
export enum LeaveBillStateEnum {
  saved = 'saved',
  submitted = 'submitted',
  approved = 'approved',
  rejected = 'rejected',
}
export class Person {
  @ApiProperty({ example: 0, description: 'The Id ' })
  id: number;
  @ApiProperty({ example: 'Kitty', description: 'The name ' })
  name: string;
  @ApiProperty({ example: 11, description: 'The age ' })
  age: number;
  constructor(id, name, age) {
    this.id = id || 0;
    this.name = name || '';
    this.age = age || 0;
  }
}
// export class PersonDto {
//   @ApiProperty({ example: 'Kitty', description: 'The name ' })
//   name: string;
//   age: number;
//   id: number;
// }
